package com.hl.controller;

import com.hl.pojo.User;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Liu Huan
 */

@RestController
public class UserController {
	
	@PostMapping
	public User user() {
		return new User();
	}
	
	@ApiOperation("获取一个用户信息的请求方法")  //给方法添加注释
	@GetMapping
	public User selcetUser(@ApiParam("用户id") Object id){   //给参数添加注释
		return new User();
	}
	
}
